﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace BanHangCshap.ChungTu
{
    public partial class NamMoADiDaPhat : Form
    {
        public NamMoADiDaPhat()
        {
            InitializeComponent();
        }
        public event MyEvent_Login _NamMoADiDaPhat_ = null;

        private void textEdit1_KeyPress(object sender, KeyPressEventArgs e)
        {
            
        }

        private void textEdit1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Alt)
            {
                if (_NamMoADiDaPhat_ != null)
                {
                    _NamMoADiDaPhat_(this, new infoLogin() { Ten = textEdit1.Text });
                }
                this.Close();
            }
        }
    }
}
